<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>transform-skew</title>
    <style>
        div
        {
            width:100px;
            height:75px;
            background-color:yellow;
            border:1px solid black;
        }
        div#div2
        {
            transform:skew(30deg,20deg);
            -ms-transform:skew(30deg,20deg);/* IE 9 */
            -moz-transform:skew(30deg,20deg);/* Firefox */
            -webkit-transform:skew(0deg,2deg); /* Safari and Chrome */
            -o-transform:skew(30deg,20deg);/* Opera */
        }
    </style>
</head>
<body>

<div>你好。这是一个div元素。</div>
<div id="div2">你好。这是一个div元素。</div>

</body>
</html>